platform = Environment()['PLATFORM']

env = None
if platform == 'win32':
	mingw = Environment(
		tools=['mingw', 'doxygen', 'gccxml', 'ilcg'],
		CPPPATH = ['.'], 
		CPPFLAGS='-Wall -Werror -g -I.',
		GCCXML_ROOT='c:/devel/gccxml-cvs-23-02-2011',
		GCCXML_EXTRA_FLAGS='-I.',
		ILCG_PATH='ilcg/ilcg.py'
	)
	env = mingw
else:
	posix = Environment(
		tools=['default','doxygen', 'gccxml', 'ilcg'],
		CPPPATH = ['.'], 
		CPPFLAGS='-Wall -Werror -g -I.',
		GCCXML_EXTRA_FLAGS='-I.',
		ILCG_PATH=r'ilcg/ilcg.py'
	)
	env = posix
env.build_dir = '#build/%s/' % (platform)
Export('env')
SConscript('SConscript',variant_dir=env.build_dir,duplicate=False)
